# decimal -> binary  bin()->str
print(bin(10))

# AND in binary
print(5 & 3)

# OR in binary
print(5 | 3)

# 按位移动
print(5 << 2)
print(5 >> 2)

# 按位取反 ~x == -(x + 1)
print(~5)

# 按位异或
print(5 ^ 6)
